<div style="height:auto; overflow:scroll;">
	<table class="table table-border table-bordered table-hover table-bg" style="width: 2000px;">
		<thead>
			<tr class="text-c">
				<th>编号</th>
				<th>客户</th>
				<th>合同号</th>
				<th>房号</th>
				<th>押金</th>
				<th>房租</th>
				<th>定金</th>
				<th>物业费</th>
				<th>水费</th>
				<th>电费</th>
				<th>其他</th>
				<th>合计</th>
				<th>支付状态</th>
				<th width="100">现金</th>
				<th width="100">转账</th>
				<th width="100">POS机</th>
				<th width="100">微信</th>
				<th width="100">支付宝</th>
				<th>日期</th>
				<th>备注</th>
			</tr>
		</thead>
		<tbody>
			<!--编号、合同号、房间号、订单号、OPID、支付方式、费用类型、支付金额、支付时间、下载收据-->
			<if condition="is_array($list) && count($list)" >
			<?php foreach($list as $k=>$ls){ ?>
				<tr class="text-c">
					<td><?php echo ($page-1)*C('PAGE_SIZE')+($k+1); ?></td>
					<td>{$ls['nickname']}</td>
					<td>{$ls['contract']}</td>
					<td>{$ls['roomnumber']}</td>
					<td>{$ls['deposit']}</td>
					<td>{$ls['rent']}</td>
					<td>{$ls['deposit_first']}</td>
					<td>{$ls['property']}</td>
					<td>{$ls['water_power']}</td>
					<td>{$ls['electric']}</td>
					<td>{$ls['other']}</td>
					<td>{$ls['acount']}</td>
					<td>
						<?php
							switch($ls['status']){
								case 0:
									echo '未支付';
								break;
								case 1:
									echo '成功';
								break;
								case 2:
									echo $ls['weixin'] > 0 ? '支付宝已支付,微信未支付' : '支付宝已支付';
								break;
								case 3:
									echo $ls['alipay'] > 0 ? '微信已支付,支付宝未支付' : '微信已支付';
								break;
							}
						?>
					</td>
					<td>{$ls['xianjin']}</td>
					<td>{$ls['zhuanzhang']}</td>
					<td>{$ls['lakala']}</td>
					<td>{$ls['weixin']}</td>
					<td>{$ls['alipay']}</td>
					<td><?php echo date('Y-m-d H:i', $ls['createtime']); ?></td>
					
					<td>{$ls['remark']}</td>
				</tr>
			<?php } ?>	
			<else />
				<tr class="text-c">
					<td colspan="25">暂无数据...</td>
				</tr>
			</if>
		</tbody>
	</table>
</div>

<include file="Common/page" />